package com.etc.medical.client;

import com.etc.common.utils.Result;
import com.etc.medical.breaker.MedicalRecordBreak;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sp-patient-basic",fallback = MedicalRecordBreak.class)
public interface MedicalRecordClient {
    /**
     * 根据医生id模糊查询病人的病历
     */
    @RequestMapping("/medicalRecord/queryByDocIdLike")
    Result queryByDocIdLike(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize,
                            @RequestParam("docId") String docId, @RequestParam("like") String like);

    /**
     * 根据医生id查询病人的病历
     *
     * @param docId
     * @return
     */
    @RequestMapping("/medicalRecord/queryByDocId")
    Result queryByDocId(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize,
                        @RequestParam("docId") String docId);
}
